package com.example.administrator.yuejian2.VLayoutAdapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.RadioButton;
import android.widget.Toast;

import com.alibaba.android.vlayout.DelegateAdapter;
import com.alibaba.android.vlayout.LayoutHelper;
import com.example.administrator.yuejian2.R;


import butterknife.BindView;
import butterknife.ButterKnife;
public  class StickyAdapter extends DelegateAdapter.Adapter {
    private LayoutHelper helper;
    private Context context;
    public StickyAdapter(Context context, LayoutHelper helper) {
        this.context = context;
        this.helper = helper;
    }

    @Override
    public LayoutHelper onCreateLayoutHelper() {
        return helper;
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.sticky_item,parent,false);
        return new StickyViewHolder(view);
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {
        StickyViewHolder viewHolder = (StickyViewHolder) holder;



    }

    @Override
    public int getItemCount() {
        return 1;
    }



}
class StickyViewHolder extends RecyclerView.ViewHolder {

    public StickyViewHolder(View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
    }
}